-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVEREST-1841 MongoDB Major Version Upgrades #1080
base: main
Are you sure you want to change the base?
Conversation
15d0cf7
to
7655fe2
Compare
b66cf9e
to
bfc3a38
Compare
c088568
to
2185272
Compare
newMajorInt, _ := strconv.Atoi(semver.Major(newVersion)[1:]) | ||
oldMajorInt, _ := strconv.Atoi(semver.Major(oldVersion)[1:]) | ||
// We will not allow major upgrades if the versions are not sequential. | ||
if newMajorInt-oldMajorInt > 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if newMajor version < oldMajor version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this case is validated earlier in the function, the errDBEngineDowngrade
will be returned
newMajorInt, _ := strconv.Atoi(semver.Major(newVersion)[1:]) | ||
oldMajorInt, _ := strconv.Atoi(semver.Major(oldVersion)[1:]) | ||
// We will not allow major upgrades if the versions are not sequential. | ||
if newMajorInt-oldMajorInt > 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this case is validated earlier in the function, the errDBEngineDowngrade
will be returned
Unlock major version upgrades for MongoDB.
Related pull requests